<script lang="ts" setup>
import OCard from '@/components/OCard.vue';
import { ref } from 'vue';
const checkboxGroup1 = ref(['Shanghai']);
const checkboxGroup2 = ref(['Shanghai']);
const checkboxGroup3 = ref(['Shanghai']);
const checkboxGroup4 = ref(['Shanghai']);
const cities = ['Shanghai', 'Beijing', 'Guangzhou', 'Shenzhen'];
</script>
<template>
  <o-card>
    <div>
      <el-checkbox-group v-model="checkboxGroup1" size="large">
        <el-checkbox-button v-for="city in cities" :key="city" :label="city">
          {{ city }}
        </el-checkbox-button>
      </el-checkbox-group>
    </div>
    <div class="demo-button-style">
      <el-checkbox-group v-model="checkboxGroup2">
        <el-checkbox-button v-for="city in cities" :key="city" :label="city">{{
          city
        }}</el-checkbox-button>
      </el-checkbox-group>
    </div>
    <div class="demo-button-style">
      <el-checkbox-group v-model="checkboxGroup3" size="small">
        <el-checkbox-button
          v-for="city in cities"
          :key="city"
          :label="city"
          :disabled="city === 'Beijing'"
          >{{ city }}</el-checkbox-button
        >
      </el-checkbox-group>
    </div>
    <div class="demo-button-style">
      <el-checkbox-group v-model="checkboxGroup4" size="small" disabled>
        <el-checkbox-button v-for="city in cities" :key="city" :label="city">{{
          city
        }}</el-checkbox-button>
      </el-checkbox-group>
    </div></o-card
  >
</template>

<style scoped lang="scss">
.demo-button-style {
  margin-top: 24px;
}
</style>
